package org.glut.wechat.chat.service.impl;

import org.glut.wechat.chat.service.IUserService;
import org.glut.wechat.chat.domain.User;
import org.glut.wechat.chat.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 用户表 服务实现类
 *
 * @author hjd
 * @since 2025-08-21 21:37
 */
@Service
public class UserServiceImpl implements IUserService {
    
    @Autowired
    private UserMapper userMapper;
    
    @Override
    public User selectById(Integer id) {
        return userMapper.selectById(id);
    }
    
    @Override
    public User selectByUsername(String username) {
        return userMapper.selectByUsername(username);
    }
}
